<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/list.css">
    <link rel="stylesheet" href="css/common.css">
</head>
<body>
    <div class="nav">
        <img src="image/logo.png" alt="头像">
        <span class="title">我的博客系统</span>
        <a href="index.html">主页</a>
        <a href="personlist.html">个人主页</a>
        <a href="edit.html">创作</a>
        <a href="logout">注销</a>
    </div>
    <div class="parent">
        <div class="left">
            <div class="card">
                <img src="image/头像.jpg">
                <span class="name" th:text="${user.username}">蜡笔小新</span>
                <a href="#">github 地址</a>
                <div class='one'>
                  <span>文章</span>
                  <span>分类</span>
                </div>
                <div class='one'>
                  <span  th:text="${num}">2</span>
                  <span>1</span>
                </div>
              </div>
        </div>
        <div class="right">
            <div class="article" th:each="blog : ${blogs}">
                <h2 class="title" th:text="${blog.title}">我的第一篇博客</h2>
                <span class="date" th:text="${blog.postTime}">2022-4-17</span>
                <div class="desc" th:text="${blog.content}">.</div>
                <a th:href="${'details.html?blogId=' + blog.blogId}" class="more">查看全文&gt;&gt;</a>
            </div>
        </div>
    </div>
</body>
</html>